package edu.ynu.se.xiecheng.achitectureclass.demo.entity.data;

import edu.ynu.se.xiecheng.achitectureclass.demo.entity.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.Where;

import javax.persistence.*;

@Getter
@Setter
@Entity
@Table(name = "camera_data")
@Where(clause = "is_deleted = 0")
@ApiModel(description = "摄像头数据信息")
public class CameraData extends Data {
    @Column(name = "image_url")
    @ApiModelProperty(value = "图片URL", required = true)
    private String imageUrl;
}